package com.lyw.mall.gateway.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

import com.lyw.mall.gateway.dao.AdminLoginLogDao;
import com.lyw.mall.gateway.entity.AdminLoginLogEntity;
import com.lyw.mall.gateway.service.AdminLoginLogService;

@Service("adminLoginLogService")
public class AdminLoginLogServiceImpl extends ServiceImpl<AdminLoginLogDao, AdminLoginLogEntity> implements AdminLoginLogService {

    @Override
    public IPage<Map<String, Object>> queryPage(Integer page, Integer limit, String name) {

        Page<Map<String, Object>> result = new Page<>(page, limit);
        LambdaQueryWrapper<AdminLoginLogEntity> lqw = new LambdaQueryWrapper<>();

        IPage<Map<String, Object>> list = baseMapper.selectPageList(result, lqw);
        return list;
    }

}